<include file="Public:header" />
		<nav id="top_nav" class="navbar navbar-inverse navbar-fixed-top" role="navigation">
	      <div class="container-fluid">
	        <div class="navbar-header">
	          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
	            <span class="sr-only">Toggle navigation</span>
	            <span class="icon-bar"></span>
	            <span class="icon-bar"></span>
	            <span class="icon-bar"></span>
	          </button>
	          <a class="navbar-brand" href="#">HC-CMS后台管理面板</a>
	        </div>
	        <div id="navbar" class="navbar-collapse collapse">
	          <ul class="nav navbar-nav navbar-right">
	            <li><a href="#">当前用户：{$Think.session.adm_arr.name}</a></li>
	            <li><a href="javascript:void(0);" data-toggle="modal" data-target="#setAdmin_modal">设置</a></li>
	            <li><a href="{:U('Login/logout')}">退出</a></li>
	            <li><a href="{:U('Home/Index/index')}" target="_blank">前台首页</a></li>
	            <li> </li>
	          </ul>
	        </div>
	      </div>
	    </nav>

	    <div class="container-fluid">
	    	<div class="row">
        <div class="col-sm-3 col-md-2 sidebar">
          <ul class="nav nav-sidebar">
	      	<li <if condition="$Think.const.CONTROLLER_NAME eq 'Index'">class="active"</if>><a href="{:U('Index/index')}">首页</a></li>
	      	<li <if condition="$Think.const.CONTROLLER_NAME eq 'Sys'">class="active"</if>><a href="{:U('Sys/index')}">系统设置</a></li>
	      	<li <if condition="$Think.const.CONTROLLER_NAME eq 'User'">class="active"</if>><a href="{:U('User/index')}">资源达人</a></li>
	     	<li <if condition="$Think.const.CONTROLLER_NAME eq 'Source'">class="active"</if>><a href="{:U('Source/index')}">资源管理</a></li>
	      	<li <if condition="$Think.const.CONTROLLER_NAME eq 'News'">class="active"</if>><a href="{:U('News/index')}">资讯管理</a></li>
	      <!-- 	<li <if condition="$Think.const.CONTROLLER_NAME eq 'Report'">class="active"</if>><a href="{:U('Report/index')}">举报管理</a></li> 举报管理，后面再搭建-->
	      	<li <if condition="$Think.const.CONTROLLER_NAME eq 'Tag'">class="active"</if>><a href="{:U('Tag/index')}">标签管理</a></li>
	      	<li <if condition="$Think.const.CONTROLLER_NAME eq 'Ad'">class="active"</if>><a href="{:U('Ad/index')}">广告管理</a></li>
	      	<li <if condition="$Think.const.CONTROLLER_NAME eq 'Friendlink'">class="active"</if>><a href="{:U('Friendlink/index')}">友链管理</a></li>
	      	<li <if condition="$Think.const.CONTROLLER_NAME eq 'Word'">class="active"</if>><a href="{:U('Word/index')}">搜索管理</a></li>
	      	<li <if condition="$Think.const.CONTROLLER_NAME eq 'Forbidden'">class="active"</if>><a href="{:U('Forbidden/index')}">屏蔽管理</a></li>
	      	<li <if condition="$Think.const.CONTROLLER_NAME eq 'Discuz'">class="active"</if>><a href="{:U('Discuz/index')}">发帖机器人</a></li>
<!-- 	      	<li <if condition="$Think.const.CONTROLLER_NAME eq 'Vdisk'">class="active"</if>><a href="{:U('Vdisk/index')}">新浪微盘</a></li>
 -->	      	
 			<li <if condition="$Think.const.CONTROLLER_NAME eq 'Yunpan'">class="active"</if>><a href="{:U('Yunpan/index')}">360云盘</a></li>
	      	<li <if condition="$Think.const.CONTROLLER_NAME eq 'Oof'">class="active"</if>><a href="{:U('Oof/index')}">115网盘</a></li>
	      	<li <if condition="$Think.const.CONTROLLER_NAME eq 'Ivdisk'">class="active"</if>><a href="{:U('Ivdisk/index')}">新浪微盘</a></li>
	      	
	      	<li <if condition="$Think.const.CONTROLLER_NAME eq 'Wenku'">class="active"</if>><a href="{:U('Wenku/index')}">文库</a></li>
	      	
	      	
          </ul>
        </div>
        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
        	{__CONTENT__}
          </div>
        </div>
      </div>
      
      <!-- 模态框（Modal） 设置管理员信息-->
<div class="modal fade" id="setAdmin_modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
   <div class="modal-dialog">
      <div class="modal-content">
         <div class="modal-body">
         <form role="form" id="setAdmin_form" method="post" action="{:U('Sys/updateAdmin')}">
         	<div class="form-group">
    			<label for="admin">管理员</label>
    			<input type="text" class="form-control" id="admin" name="admin" value="{$Think.session.adm_arr.name}" placeholder="为空，则管理员账号默认为admin">
  			</div>
  			<div class="form-group">
    			<label for="opwd">原密码</label>
    			<input type="text" class="form-control" id="opwd" name="opwd" value="" placeholder="您如果需要修改登陆密码，请在此处输入原密码">
  			</div>
  			<div class="form-group">
    			<label for="npwd">新密码</label>
    			<input type="text" class="form-control" id="npwd" name="npwd" placeholder="您如果需要修改登陆密码，请在此处输入新密码">
  			</div>
  			<div class="form-group">
    			<label for="phone">手机号码</label>
    			<input type="text" class="form-control" id="phone" name="phone" value="{$Think.session.adm_arr.phone}" placeholder="【此处输入的必须是Email，否则会造成无法登陆管理后台的情况】">
  			</div>
		</form>
         </div>
         
         <div class="modal-footer">
            <button type="button" class="btn btn-default" 
               data-dismiss="modal">关闭
            </button>
            <button type="button" id="updateAdminBtn" class="btn btn-primary">确定修改</button>
         </div>
      </div><!-- /.modal-content -->
</div><!-- /.modal -->
</div>
<script>
$(function(){
	$("#updateAdminBtn").click(function(){
		$("#setAdmin_form").submit();
	});
})

</script>
<include file="Public:footer" />